package com.example.telesys.service;

import com.example.telesys.interceptor.FeignPassToken;
import com.example.telesys.pojo.Customerorder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-supplier", configuration = FeignPassToken.class)
public interface SupplierService {

    @RequestMapping("/supplier/addPhonePriceTotal")
    int addPhonePriceTotal(@RequestParam("phoneTotal") Integer phoneTotal, @RequestParam("supplierid") String supplierid);

    @RequestMapping("/supplier/addBroadPriceTotal")
    int addBroadPriceTotal(
            @RequestParam("broadbandTotal") Integer broadbandTotal,
            @RequestParam("supplierid") String supplierid);

    @RequestMapping("/supplier/addTrafficPriceTotal")
    int addTrafficPriceTotal(
            @RequestParam("trafficTotal") Integer trafficTotal,
            @RequestParam("supplierid") String supplierid);
}
